package com.zk.fm.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.Toast;

import com.zk.fm.R;

public class GameRelativeActivity extends Activity {
	private Button playerPropertiesBtn;
	private Button teamPropertiesBtn;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.gamerelative);

		initViews();
		setListener();
	}

	private void setListener() {
		playerPropertiesBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				Intent i = new Intent();
				i.setClass(GameRelativeActivity.this, PlayersList.class);
				startActivity(i);
			}
		});

		teamPropertiesBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				Toast.makeText(GameRelativeActivity.this, "wait", 3).show();
			}
		});
	}

	private void initViews() {
		playerPropertiesBtn = (Button) findViewById(R.id.playerProperties);
		teamPropertiesBtn = (Button) findViewById(R.id.teamProperties);
	}
}
